package cn.edu.scau.cmi.zhangweiming.Comprehensive;
import cn.edu.scau.cmi.zhangweiming.client.*;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;
import javafx.stage.Stage;

import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;
public class Comprehensive_controller {

	
	public void singleton(ActionEvent event) throws Exception{
		SingletonClient single=new SingletonClient();
		Stage a=new Stage();
		single.start(a);
	}
	public void multiple(ActionEvent event) throws Exception{
		MultipleClient multi=new MultipleClient();
		Stage a=new Stage();
		multi.start(a);
	}
	public void simple(ActionEvent event) throws Exception{
		SimpleFactoryMethodClient simple=new SimpleFactoryMethodClient();
		Stage a=new Stage();
		simple.start(a);
	}
	public void factory(ActionEvent event) throws Exception{
		FactoryClient factory=new FactoryClient();
		Stage a=new Stage();
		factory.start(a);
	}
	public void abstractFactory(ActionEvent event) throws Exception{
		AbstractFactoryClient abs=new AbstractFactoryClient();
		Stage a=new Stage();
		abs.start(a);
	}
	public void classAdapter(ActionEvent event) throws Exception{
		AdapterClient adapter=new AdapterClient();
		Stage a=new Stage();
		adapter.start(a);
	}
	public void objectAdapter(ActionEvent event) throws Exception{
		AdapterClient adapter=new AdapterClient();
		Stage a=new Stage();
		adapter.start(a);
	}
	public void safe(ActionEvent event) throws Exception{
		
	}
	public void consistent(ActionEvent event) throws Exception{
		ConsistentCompositeClient consist=new ConsistentCompositeClient();
		Stage a=new Stage();
		consist.start(a);
	}
}
